package cn.tedu;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Scanner;

public class Demo02 {
    public static void main(String[] args) throws SQLException {
        Scanner scan=new Scanner(System.in);
        System.out.println("请求英雄");
        String name=scan.nextLine();
        System.out.println("请求英雄");
        Connection  conne= DriverManager.getConnection(
                "jdbc:mysql://localhost:3306/empdb?characterEncoding=utf8&serverTimezone=Asia/Shanghai",
                "root","123456");
        System.out.println("连接成功"+conne);
        Statement s= conne.createStatement();
        s.execute("drop  table jdbct1");
        conne.close();
    }
}

